package com.cpd.blog.service;

import com.cpd.blog.dto.Article.CommentParam;
import com.cpd.blog.dto.Result;

/**
 * @author Copydown
 * @date 2021/8/17 22:04
 */
public interface CommentsService {
    /**
     * 根据文章 id查询所有评论
     *
     * @param id id
     * @return Result
     */
    Result commentByArticleId(Long id);

    /**
     * 发表评论
     *
     * @param commentParam commentParam
     * @return Result
     */
    Result comment(CommentParam commentParam);

    /**
     * 根据 文章Id 删除其下所有评论
     *
     * @param articleId articleId
     * @return Result
     */
    Result deleteByArticleId(Long articleId);
}
